//
//  KANavigationVC.swift
//  kano
//
//  Created by Sophia on 2024/8/14.
//

import UIKit

class KANavigationVC: UINavigationController {
    override func viewDidLoad() {
        super.viewDidLoad()
        navigationBar.isTranslucent = false
//        if #available(iOS 15.0, *) {
//            let appearance = UINavigationBarAppearance()
//            appearance.backgroundColor = .white
//            self.navigationBar.standardAppearance = appearance
////            self.navigationBar.scrollEdgeAppearance = self.navigationController?.navigationBar
//        }
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if children.count > 0 {
            viewController.hidesBottomBarWhenPushed = true
        }
        super.pushViewController(viewController, animated: animated)
    }
}
    
